
package addroleinhierarchyservice;

import java.io.*;
import java.sql.*;

import javax.xml.namespace.QName;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;


public class AddRoleInHierarchyImpl implements AddRoleInHierarchyIF {
    


	
	/* (non-Javadoc)
	 * @see voteservice.VoteIF#vote(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
	 */
	public boolean update(String roleName)
	{
		System.out.println("RBAC administrator has added the target role into role hierarchy!");
		return hookMakeDecision(roleName);
	}
	
	/**
	 * Programmers can use this hook method to add the target role into the role hierarchy according to their view of the target role
	 * @param roleName	Name of the target role.
	 * @return			true if target role has been added.
	 */
	private boolean hookMakeDecision(String roleName){
		
		return true;
	}
}
